package com.hopeland.androidpc.jilintongdaomen;

import android.view.View;

import com.util.AddRfidsBean;
import com.util.BaseRecyclerAdapter;


/**
 * 统计列表
 */
public class AddListHkAdapter extends BaseRecyclerAdapter<AddRfidsBean> {
    private OnRecyclerViewItemClickListener mOnItemClickListener;
    @Override
    public int getItemLayoutId(int viewType) {
        return R.layout.item_add_list_hk;
    }

    public AddListHkAdapter() {

    }

    @Override
    public void onBindViewHolder(CommonHolder holder, int position) {
        AddRfidsBean bean = getItem(position);
        holder.getText(R.id.tv_id).setText(bean.id+"");
        holder.getText(R.id.tv_addressNums).setText(bean.addressNums);
        holder.getText(R.id.tv_roomType).setText(bean.roomType);
        holder.getText(R.id.tv_flights).setText(bean.flights);
        holder.getText(R.id.tv_times).setText(bean.times);
       // holder.getText(R.id.ed_num).setText("0");




    }
    public  interface OnRecyclerViewItemClickListener {
        void onItemClick(View view, AddRfidsBean data, int position);
    }

    public void setOnItemClickListener(OnRecyclerViewItemClickListener listener) {
        this.mOnItemClickListener = listener;
    }
}
